<?php

class Application_Model_Bewertungen
{
	protected $_id;
	protected $_created;
	protected $_locationid;
	protected $_erstellerid;
	protected $_titel;
	protected $_anzschiffe;
	protected $_bewertung;


	public function __construct (array $options = null)
	{
		if (is_array($options))
		{
			$this->setOptions($options);
		}
	}
	public function setOptions (array $options)
	{
		$methods = get_class_methods($this);
		foreach ($options as $key => $value)
		{
			$method = 'set' . ucfirst($key);
			if (in_array($method, $methods))
			{
				$this->$method($value);
			}
		}
		return $this;
	}

	public function __set ($name, $value)
	{
		$method = 'set' . ucfirst($name);
		if (('mapper' == $name) || ! method_exists($this, $method))
		{
			throw new Exception('Invalid auth property');
		}
		$this->$method($value);
	}
	
	public function __get ($name)
	{
		$method = 'get' . ucfirst($name);
		if (('mapper' == $name) || ! method_exists($this, $method))
		{
			throw new Exception('Invalid auth property');
		}
		return $this->$method();
	}
	/**
	 * @return the $_id
	 */
	public function getId() {
		return $this->_id;
	}

	/**
	 * @return the $_created
	 */
	public function getCreated() {
		return $this->_created;
	}

	/**
	 * @return the $_erstellerid
	 */
	public function getErstellerid() {
		return $this->_erstellerid;
	}

	/**
	 * @return the $_titel
	 */
	public function getTitel() {
		return $this->_titel;
	}

	/**
	 * @return the $_anzschiffe
	 */
	public function getAnzschiffe() {
		return $this->_anzschiffe;
	}

	/**
	 * @return the $_bewertung
	 */
	public function getBewertung() {
		return $this->_bewertung;
	}

	/**
	 * @param field_type $_id
	 */
	public function setId($_id) {
		$this->_id = $_id;
	}

	/**
	 * @param field_type $_created
	 */
	public function setCreated($_created) {
		$this->_created = $_created;
	}

	/**
	 * @param field_type $_erstellerid
	 */
	public function setErstellerid($_erstellerid) {
		$this->_erstellerid = $_erstellerid;
	}

	/**
	 * @param field_type $_titel
	 */
	public function setTitel($_titel) {
		$this->_titel = $_titel;
	}

	/**
	 * @param field_type $_anzschiffe
	 */
	public function setAnzschiffe($_anzschiffe) {
		$this->_anzschiffe = $_anzschiffe;
	}

	/**
	 * @param field_type $_bewertung
	 */
	public function setBewertung($_bewertung) {
		$this->_bewertung = $_bewertung;
	}
	/**
	 * @return the $_locationid
	 */
	public function getLocationid() {
		return $this->_locationid;
	}

	/**
	 * @param field_type $_locationid
	 */
	public function setLocationid($_locationid) {
		$this->_locationid = $_locationid;
	}


	
}